package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * @author MikeCoder
 * @create 2023-12-0421:20
 * @description:
 * @verson:
 */
public interface SysRoleService {
    PageInfo<SysRole> findByPage(Integer pageNum, Integer pageSize, SysRoleDto sysRoleDto );

    Integer add(SysRole sysRole);

    SysRole getSysRoleById(Integer id);

    Integer change(SysRole sysRole);

    Integer remove(Integer id);

    Map<String, Object> userRoleInfo(Integer id);

    List<Long> findRoleMenuId(Long roleId);
}

